<?php

namespace app\shop\validate;

class Cart extends \ShopValidate
{
    protected $rule = [
        'user_id' => 'require',
        'goods_id' => 'require',
        'quantity' => 'require',
    ];

    protected $message = [
       // 'cate_name.require' => '分类名称必须',
       // 'cate_name.max' => '分类名称长度不能超过30个字符',
       // 'parent_id.checkExists' => '指定的父级分类不存在',
    ];

    protected $field = [
        'goods_id' => '商品ID',
        'quantity' => '商品数量',
        'user_id' => '用户ID',
    ];

    protected $scene = [
        'save' => ['user_id', 'goods_id', 'quantity'],
    ];

}
